package com.chengzheng.crawler.spiderman.work.runner;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @author zhengcheng
 * @date 2018/1/30
 * @time 下午5:38
 * @email chengzhengzheng@meituan.com
 **/

@Component
@Order(value = 1)
public class ApplictionRunner implements CommandLineRunner {

    private static final Logger LOG = LoggerFactory.getLogger(ApplictionRunner.class);

    @Override
    public void run(String... strings) throws Exception {
        Context context = new Context();

        LOG.debug("开始行动...");

        context.start();
    }
}
